package dao;

import pojo.Businesses;
import util.PageHelper;

import java.util.ArrayList;

public interface IBusinessManagementDao {
    //业务管理
    //业务查看(动态模糊查询,带分页)
    ArrayList<Businesses> selectBusinesses(Businesses businesses, PageHelper pageHelper);
    //查询数据数量
    int getTotalCount(Businesses businesses);
    //创建业务(参数为业务对象)
    int insertBusiness(Businesses businesses);
    //业务信息查询(根据业务ID)
    ArrayList<Businesses> selectBusiness(Integer bId);
    //业务信息修改(根据业务对象)
    int updateBusiness(Businesses businesses);
    //根据id删除数据
    int deleteBusiness(Integer bId);
    //无条件全数据查询
    ArrayList<Businesses> selectAllBusinesses();
    //根据id查询数据
    ArrayList<Businesses> selectBusinessById(Integer bId);
}
